package com.xhz.cas.model.controller;


import com.xhz.cas.model.entity.SsoUser;
import com.xhz.cas.model.service.SsoUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 账户表 单点登录账号信息表 前端控制器
 * </p>
 *
 * @author huangcb
 * @since 2020-04-17
 */
@RestController
@RequestMapping("/cas.model/ssoUser")
public class SsoUserController {
    @Autowired
    @Qualifier("ssoUserServiceImpl")
    private SsoUserService ssoUserService;

    @RequestMapping(value = "getAllSsoUser",method = RequestMethod.GET)
    public List<SsoUser> getAllSsoUser(){
        List<SsoUser> list = ssoUserService.list();
        return list;
    }
}

